﻿<%@ Page Title="" Language="C#" MasterPageFile="~/siteColecao.Master" AutoEventWireup="true" CodeBehind="IncluirItem.aspx.cs" Inherits="prjColecao.incluirItem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="Incluir1">
        <span>Nome:</span>
        <asp:TextBox ID="txItemNome" runat="server"></asp:TextBox>
    </div>
    <div id="Incluir1">
        <span>Descrição:</span>
        <asp:TextBox ID="txtItemDesc" runat="server"></asp:TextBox>
    </div>
    <div id="Incluir1">
        <span>Marca:</span>
        <asp:DropDownList ID="cmbMarca" runat="server" DataSourceID="DrpDownOraConn" 
            DataTextField="MARCA" DataValueField="MARCA" Height="16px" Width="144px">
        </asp:DropDownList>
        <asp:SqlDataSource ID="DrpDownOraConn" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ColecaoConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ColecaoConnectionString.ProviderName %>" 
            SelectCommand=" SELECT MARCA.NOME_MARCA AS &quot;MARCA&quot; FROM COLECAO.MARCA">
        </asp:SqlDataSource>
    </div>
    <div id="Incluir1">
        <span>Fabricação</span>
        <asp:DropDownList ID="cmbFabricante" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="FABRICANTE" 
            DataValueField="FABRICANTE" Height="16px" Width="144px">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ColecaoConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ColecaoConnectionString.ProviderName %>" 
            SelectCommand=" SELECT FABRICANTE.NOME_FABRICANTE AS &quot;FABRICANTE&quot; FROM COLECAO.FABRICANTE">
        </asp:SqlDataSource>
    </div>
    <div id="Incluir1">
        <!-- Barnhen Begin -->
        <script type="text/javascript" src="/Scripts/Mascara.js"></script>
        <!-- Barnhen End -->
        <span>Ano Fabricação</span>
        <asp:TextBox ID="txtAnoFabricacao" runat="server" align="right" 
            ToolTip="Insert Date as DD/MM/YYYY" onkeyup="formataData(this,event;)" 
            CausesValidation="True" ></asp:TextBox>
    </div>
    <br>
    </br>
    <p class="incluirButton">
        <asp:Button ID="btnIncluirConfirmar" runat="server" Text="Incluir" 
            onclick="btnIncluirConfirmar_Click" />
    </p>
    <asp:Button ID="btnIncluirApagar" runat="server" Text="Apagar" />
    <asp:Button ID="btnIncluirVoltar" runat="server" Text="Voltar" />

</asp:Content>
